package net.comm.check.web.form;

import net.comm.page.PageCtr;

import org.apache.struts.action.*;

public class ChecklogForm extends ActionForm {

	private static final long serialVersionUID = 1L;
	private static final String KEY_SPLIT = "#,##,#,#,#";
	
	private int  QryCheckerType = 0;	//
	private int  QryCheckerID = 0;		//
	private int  QryUserID = 0;			//

	private int	SeqID;			//
	private String  CheckerType;//	验证者类型
	private int  CheckerID;		//	验证者ID
	private int  CheckerLevel;	//	验证者等级
	private int  UserID;		//	被验证会员ID
	private int  UserLevel;		//	会员等级
	private String  Mtime;		//	验证时间
	
	private int  Chairman;	//	验证者为业委时的联系人ID 或者物业时的负责人ID

	public ChecklogForm() {
		super();
		// TODO Auto-generated constructor stub
	}
	public void Clear() {
		
		QryCheckerType = 0;	//
		QryCheckerID = 0;		//
		QryUserID = 0;			//

		SeqID = 0;			//
		CheckerType = "";	//	验证者类型
		CheckerID = 0;		//	验证者ID
		CheckerLevel = 0;	//	验证者等级
		UserID = 0;			//	被验证会员ID
		UserLevel = 0;		//	会员等级
		Mtime = "";			//	验证时间		
		
		Chairman = 0;
	}

	/**
	 * 查询当前页主键值串
	 */
	private String key = "";

	/**
	 * 查询上上页主键值串
	 */
	private String lastKey = "";
	

	/**
	 * 分页控制对象
	 */
	private PageCtr page;
	


	private String action = "";

	public PageCtr getPage() {
		return page;
	}

	public void setPage(PageCtr page) {
		this.page = page;
	}
	
	/**
	 * @param key the key to set
	 */
	public void setKey(String key) {
		this.key = key;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String[] array) {
		if(key != null && key.trim().length() > 0) {
			key = "";
		}
		
		StringBuffer keyBuff = new StringBuffer();
		for (int i = 0; i < array.length; i++) 
		{
			/**
			 * 防止空字符串引起的split方法异常
			 */
			if(array[i] == null || array[i].length() == 0) {
				keyBuff.append(" ");
			} else {
				keyBuff.append(array[i]);
			}
			
			keyBuff.append(KEY_SPLIT);
		}
		
		key = keyBuff.toString();		
	}
	
	/**
	 * 获取lastKey值
	 * @return
	 */
	public String[] lastKey()
	{
		if(lastKey == null || lastKey.trim().length() == 0) {
			return null;
		}
		
		return lastKey.split(KEY_SPLIT);
	}
	
	public String getLastKey() {
		return lastKey;
	}

	public void setLastKey(String lastKey) {
		this.lastKey = lastKey;
	}

	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}
	
	public static String getKEY_SPLIT() {
		return KEY_SPLIT;
	}


	public static long getSerialVersionUID() {
		return serialVersionUID;
	}
	public int getQryCheckerType() {
		return QryCheckerType;
	}
	public int getQryCheckerID() {
		return QryCheckerID;
	}
	public int getQryUserID() {
		return QryUserID;
	}
	public int getSeqID() {
		return SeqID;
	}
	public String getCheckerType() {
		return CheckerType;
	}
	public int getCheckerID() {
		return CheckerID;
	}
	public int getCheckerLevel() {
		return CheckerLevel;
	}
	public int getUserID() {
		return UserID;
	}
	public int getUserLevel() {
		return UserLevel;
	}
	public String getMtime() {
		return Mtime;
	}
	public void setQryCheckerType(int qryCheckerType) {
		QryCheckerType = qryCheckerType;
	}
	public void setQryCheckerID(int qryCheckerID) {
		QryCheckerID = qryCheckerID;
	}
	public void setQryUserID(int qryUserID) {
		QryUserID = qryUserID;
	}
	public void setSeqID(int seqID) {
		SeqID = seqID;
	}
	public void setCheckerType(String checkerType) {
		CheckerType = checkerType;
	}
	public void setCheckerID(int checkerID) {
		CheckerID = checkerID;
	}
	public void setCheckerLevel(int checkerLevel) {
		CheckerLevel = checkerLevel;
	}
	public void setUserID(int userID) {
		UserID = userID;
	}
	public void setUserLevel(int userLevel) {
		UserLevel = userLevel;
	}
	public void setMtime(String mtime) {
		Mtime = mtime;
	}
	public int getChairman() {
		return Chairman;
	}
	public void setChairman(int chairman) {
		Chairman = chairman;
	}


	
}